package com.ynet.middleground.user.bean;

import com.ynet.core.common.BaseReqObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @program: 2019-10-12_userCenter
 * @description: 渠道用户授权
 * @author: DaiGaoLe
 * @create: 2019-11-12 17:28
 **/
@Data
@ApiModel(value = "渠道用户授权", description = "渠道用户授权")
public class ChannelUserAuthorizationReq extends BaseReqObj {
    private static final long serialVersionUID = 9081608272554860748L;
    /**
     * 用户id
     */
    @NotNull(message = "渠道用户授权用户id不能为空")
    @ApiModelProperty(value = "用户id", notes = "用户id", dataType = "Integer", required = true)
    private Integer userId;

    @ApiModelProperty(value = "用户类型(0:企业,2:自然人)", notes = "用户类型(0:企业,2:自然人)")
    private String userType;
}
